﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyBanHang_NewApp.Entity
{
    public class TheTichDiem
    {
        private string maThe;
        private long soDiem;

        public TheTichDiem(string ma, long diem)
        {
            maThe = ma;
            soDiem = diem;
        }

        public string getAttribute(int index)
        {
            switch (index)
            {
                case 0: return maThe;
                case 1: return soDiem.ToString();
                default: return "!error";
            }
        }

        public string toString()
        {
            return "Mã thẻ: " + maThe + "\nSố tiền trong thẻ: " + soDiem.ToString();
        }
    }
}
